<template>
	<view>
		页面1
		<button @click="noTabbar">不要tabbar</button>
		<button @click="twoTabbar">2个tabbar</button>
		<button @click="threeTabbar">3个tabbar</button>
		<button @click="fourTabbar">4个tabbar</button>
	</view>
</template>

<script>
	import eventBus from '../../utils/eventBus';
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			noTabbar() {
				eventBus.emit('setTabbarList', [

				])
			},
			twoTabbar() {
				eventBus.emit('setTabbarList', [
					{pagePath:'/pages/one/one', text: 'one'},
					{pagePath:'/pages/two/two', text: 'two'},
				])
			},
			threeTabbar() {
				eventBus.emit('setTabbarList', [
					{pagePath:'/pages/one/one', text: 'one'},
					{pagePath:'/pages/two/two', text: 'two'},
					{pagePath:'/pages/three/three', text: 'three'},
				])
			},
			fourTabbar() {
				eventBus.emit('setTabbarList', [
					{pagePath:'/pages/one/one', text: 'one'},
					{pagePath:'/pages/two/two', text: 'two'},
					{pagePath:'/pages/three/three', text: 'three'},
					{pagePath:'/pages/four/four', text: 'four'},
				])
			},
		}
	}
</script>

<style>

</style>
